<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>

<body>

  <div id="app">

    <!-- 获取对象的每个value -->
    <ul>
      <li v-for="item in info">{{item}}</li>
    </ul>

    <!-- 获取key和value 格式：(value, key) -->
    <ul>
      <li v-for="(value, key) in info">{{key}}: {{value}}</li>
    </ul>

    <!-- 还可以在加上使用index -->
    <ul>
      <li v-for="(value, key, index) in info">{{index+1}}-{{key}}: {{value}}</li>
    </ul>
  </div>


  <script src="../js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        info: {
          name: 'ccc',
          age: 22,
          height: 1.88
        }
      }
    })
  </script>

</body>

</html>